table, tr, th, td {
    margin: 0mm;
    padding: 0mm;
    font-family: "Arial";
    font-size: 5mm;
    text-align: left;
}

table {
    margin: 5mm;
    border: 0mm none;
    border-bottom: 2px solid black;
    position: relative;
    float: left;
}

tr, th, td {
    margin: 0mm;
    padding-top: 1mm;
    padding-bottom: 0.5mm;
    padding-left: 1em;
    padding-right: 1em;
    font-weight: normal;
}

th, td {
    white-space: nowrap;
}

th {
    text-align: center;
    border: 0mm none;
}

td {
    border: 2px solid black;
    border-top: 0mm none;
    border-bottom: 0mm none;
}

tr.first td, tr.first-primary td {
    border-top: 2px solid black;
}

tr.last td, tr.last-primary td {
    border-bottom: 2px solid black;
}